﻿using System.Collections.Generic;

namespace Lhz.Sc.Entity.Exception
{
    public class InvokeException : ServiceCenterException
    {
        public InvokeException(System.Exception innerException = null) : base("调用异常。", innerException)
        {

        }

        public InvokeException(string applicationNo, string serviceNo, string operationNo, System.Exception innerException = null) : base("调用应用【" + applicationNo + "】中服务【" + serviceNo + "】的方法【" + operationNo + "】失败，请查看InnerException。", innerException)
        {

        }

        public InvokeException(IEnumerable<string> applicationNos, IEnumerable<string> serviceNos, IEnumerable<string> operationNos, System.Exception innerException = null) : base("调用应用【" + string.Join(",", applicationNos) + "】中服务【" + string.Join(",", serviceNos) + "】的方法【" + string.Join(",", operationNos) + "】失败，请查看InnerException。", innerException)
        {

        }
    }
}
